﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FortuneHeavenCommon.DataMap
{
    public partial class AdminUser
    {
        public const string TABLE_NAME = "AdminUser";
        public const string INSERT_SQL = "insert into AdminUser([ID],[LoginName],[RealName],[NickName],[Password],[Status],[Roles],Time,RoomFilter,ProvinceFilter,CityFilter,IndexFilter) values (@ID,@LoginName,@RealName,@NickName,@Password,@Status,@Roles,@Time,@RoomFilter,@ProvinceFilter,@CityFilter,@IndexFilter)";
        public const string UPDATE_SQL = "UPDATE AdminUser SET [ID]=@ID,[LoginName]=@LoginName,[RealName]=@RealName,[NickName]=@NickName,[Password]=@Password,[Status]=@Status,[Roles] =@Roles,Time=@Time,RoomFilter=@RoomFilter,ProvinceFilter=@ProvinceFilter,CityFilter=@CityFilter,IndexFilter=@IndexFilter where ID = @ID";

        /// <summary>
        ///
        /// </summary>
        public int ID
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public string LoginName
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public string RealName
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public string NickName
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public string Password
        {
            get;
            set;
        }
        /// <summary>
        ///
        /// </summary>
        public int Status
        {
            get;
            set;
        }

        /// <summary>
        /// 
        /// </summary>
        public int IsAdmin
        {
            get;
            set;
        }

        /// <summary>
        /// 
        /// </summary>
        public string Roles
        {
            get;
            set;
        }

        public DateTime Time
        {
            get;
            set;
        }

        public string RoomFilter
        {
            get;
            set;
        }
        public string ProvinceFilter
        {
            get;
            set;
        }

        public string CityFilter
        {
            get;
            set;
        }

        public string IndexFilter
        {
            get;
            set;
        }
    }
}
